package SixPrinciples.Principle4;

public class person {


    public static void main(String[] args) {
        System.out.println("依赖倒置，每次新增方法的时候，只要让新增的方法实现接口即可");
        person1 person1 = new person1();
        person1.receive(new email());
        person1.receive(new message());
    }
}
